package com.zn.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zn.Vo.AdminAndCodeVo;
import com.zn.bean.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zn.utils.Result;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 码农小周
 * @since 2023-05-12
 */
public interface AdminService extends IService<Admin> {

    /**
     * 登录
     *
     * @param adminAndCodeVo
     * @return
     */
    Result<Long> login(AdminAndCodeVo adminAndCodeVo, HttpServletRequest request);
    Result<Admin> byAdminId(Long adminId);

    Result<Page<Admin>> pagSelect(Long page, Long pageSize, String adminName);

    Result<String> del(Long adminId);

    Result<String> addAdmin(Admin admin);

    Result<String> editAdmin(Admin admin);

    Result<String> editAdminStatus(Admin admin);

    Result<String> resetting(Admin admin);
}
